import {NestMiddleware, RequestMethod, Type} from "@nestjs/common";

export interface MiddlewareConsumer {
    apply(...middlewares: (Type<any> | Function)[]): this;
    exclude(...routers: Array<string | { path: string, method: RequestMethod }>): this;
    forRoutes(...routers: Array<string | { path: string, method: RequestMethod } | Function>): this
}
